package org.jeecg.modules.zhima.center.enums;

public enum CouponHistoryUseStatus {

    VALID(0, "未使用"),
    USED(1, "已使用"),
    INVALID(2, "已过期");

    public Integer CODE;

    public String VALUE;

     CouponHistoryUseStatus(Integer code, String value){
        this.CODE = code;
        this.VALUE = value;
    }

    public static CouponHistoryUseStatus get(Integer code){
         switch (code){
             case 0:
                 return VALID;
             case 1:
                 return USED;
             default:
                 return INVALID;
         }
    }
}
